import request from '@/utils/request'

let SupplierApi = {
  /*供应商列表*/
  supplierList(data, errorback) {
    return request._post('/shop/supplier.supplier/index', data, errorback);
  },
  /*添加供应商*/
  toaddSupplier(data, errorback) {
    return request._get('/shop/supplier.supplier/add', data, errorback);
  },
  /*添加供应商*/
  addSupplier(data, errorback) {
    return request._post('/shop/supplier.supplier/add', data, errorback);
  },
  /*供应商编辑*/
  toEditSupplier(data, errorback) {
    return request._get('/shop/supplier.supplier/edit', data, errorback);
  },
  /*供应商编辑*/
  editSupplier(data, errorback) {
    return request._post('/shop/supplier.supplier/edit', data, errorback);
  },
  /*删除供应商*/
  deleteSupplier(data, errorback) {
    return request._post('/shop/supplier.supplier/delete', data, errorback);
  },
  auditSubmit(data, errorback) {
    return request._post('/shop/supplier.supplier/auditSupplier', data, errorback);
  },
  /*提现记录*/
  cashList(data, errorback) {
    return request._post('/shop/supplier.cash/index', data, errorback);
  },
  /*提现审核*/
  cashSubmit(data, errorback) {
    return request._post('/shop/supplier.cash/submit', data, errorback);
  },
  /*提现确认打款*/
  cashMoney(data, errorback) {
    return request._post('/shop/supplier.cash/money', data, errorback);
  },
  /*供应商待审核列表*/
  supplierPendList(data, errorback) {
    return request._post('/shop/supplier.supplier/apply', data, errorback);
  },
  /*供应商审核详情*/
  toAudit(data, errorback) {
    return request._get('/shop/supplier.supplier/audit', data, errorback);
  },
  /*供应商审核*/
  audit(data, errorback) {
    return request._post('/shop/supplier.supplier/audit', data, errorback);
  },
  /*获取主营分类*/
  Category(data, errorback) {
    return request._post('/shop/supplier.Category/index', data, errorback);
  },
  /*添加分类*/
  addCategory(data, errorback) {
    return request._post('/shop/supplier.Category/add', data, errorback);
  },
  /*编辑分类*/
  editCategory(data, errorback) {
    return request._post('/shop/supplier.Category/edit', data, errorback);
  },
  /*删除分类*/
  deleteCategory(data, errorback) {
    return request._post('/shop/supplier.Category/delete', data, errorback);
  },
  /*押金列表*/
  supplierOrder(data, errorback) {
    return request._post('/shop/supplier.Order/index', data, errorback);
  },
  /*押金列表*/
  refundList(data, errorback) {
    return request._post('/shop/supplier.supplier/refund', data, errorback);
  },
  /*退押金操作*/
  refundSubmit(data, errorback) {
    return request._post('/shop/supplier.supplier/submit', data, errorback);
  },
  /*服务保障申请列表*/
  securityList(data, errorback) {
    return request._post('/shop/supplier.supplier/security', data, errorback);
  },
  /*服务保障操作*/
  securityVerify(data, errorback) {
    return request._post('/shop/supplier.supplier/verify', data, errorback);
  },
  /*获取广告分类*/
  SecurityList(data, errorback) {
    return request._post('/shop/supplier.Security/index', data, errorback);
  },
  /*添加分类*/
  addSecurity(data, errorback) {
    return request._post('/shop/supplier.Security/add', data, errorback);
  },
  /*编辑分类*/
  editSecurity(data, errorback) {
    return request._post('/shop/supplier.Security/edit', data, errorback);
  },
  /*删除分类*/
  deleteSecurity(data, errorback) {
    return request._post('/shop/supplier.Security/delete', data, errorback);
  },
  /*分类审核*/
  auditStatusSubmit(data, errorback) {
    return request._post('/shop/supplier.security/audit', data, errorback);
  },
  /*开启禁止*/
  supplierRecycle(data, errorback) {
    return request._post('/shop/supplier.supplier/recycle', data, errorback);
  },

   /*佣金统计*/
   getSupplierCommissionList(data, errorback) {
    return request._post('/shop/statistics.supplier/getSupplierCommissionList', data, errorback);
  },

   /*佣金提现*/
   withdrawal(data, errorback) {
    return request._post('/shop/statistics.supplier/withdrawal', data, errorback);
  },
   /*提现记录*/
   getWithdrawalList(data, errorback) {
    return request._post('/shop/statistics.supplier/getWithdrawalList', data, errorback);
  },
   /*时间列表*/
   getDateList(data, errorback) {
    return request._get('/shop/statistics.supplier/getDateList', data, errorback);
  },

    /*商户佣金列表*/
    getSupplierCommissionListData(data, errorback) {
      return request._get('/shop/statistics.supplier/getSupplierCommissionListData', data, errorback);
    },

     /*提现确认打款*/
 confirmWithdrawal(data, errorback) {
    return request._post('/shop/statistics.supplier/confirmWithdrawal', data, errorback);
  },

      /*提现确认打款*/
  confirmRefuse(data, errorback) {
    return request._post('/shop/statistics.supplier/refuse', data, errorback);
  },
  RechargeApi(data, errorback) {
    return request._post('/shop/supplier.supplier/rechargeSms', data, errorback);
  },

}
export default SupplierApi;
